/* 
 * File:   Chunk.h
 * Author: pson
 *
 * Created on May 31, 2011, 9:54 AM
 */

#ifndef NRPSTG_CHUNK_H
#define	NRPSTG_CHUNK_H

#include "Cell.h"

class Chunk {
private:
    //Level of detail. 0 being lowest
    GLubyte _lod;
    //An array containing (_lod + 1)*3 elements
    //Each set of 3 elements is a coordinate relative to its parent
    GLubyte* _index;
    
    //An array of 125000 cells
    Cell _cells[12500];
    
public:
    Chunk();
    virtual ~Chunk();

    Cell* getCell(int n);
};

#endif	/* NRPSTG_CHUNK_H */

